<?php

namespace app\modules\api\controllers;

/**
 * @OA\Tag(
 *   name="User",
 *   description="用户管理"
 * )
 */
class UserController
{
    /**
     *  @OA\Post(
     *      path="/user/login",
     *      tags={"User"},
     *      summary="用户登录",
     *      @OA\RequestBody(
     *          @OA\MediaType(
     *              mediaType="multipart/form-data",
     *              @OA\Schema(
     *                  required={"username", "password"},
     *                  @OA\Property(property="username", type="string", description="登录用户名", default="terry"),
     *                  @OA\Property(property="password", type="string", description="登录密码", default="123456"),
     *              )
     *          )
     *      ),
     *      @OA\Response(
     *          response=200,
     *          description="操作成功",
     *          @OA\MediaType(
     *              mediaType="application/json",
     *              @OA\Schema(
     *                  @OA\Property(property="accessToken", type="integer", description="Token字符串", example="FKFRlDNlDQ7i5tTyFJSAsEYrnzP91U-83"),
     *                  example={"accessToken":"FKFRlDNlDQ7i5tTyFJSAsEYrnzP91U-83"}
     *              )
     *          )
     *      ),
     *  )
     */
    public function actionLogin()
    {
    }
}